package io.github.lee.app.unsplash.global.di.database

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import io.github.lee.app.unsplash.repository.dao.SearchKeywordDao
import io.github.lee.app.unsplash.repository.dao.converter.DateConverter
import io.github.lee.app.unsplash.repository.domain.SearchKeyword

@Database(entities = [SearchKeyword::class], version = 1)
@TypeConverters(DateConverter::class)
abstract class UnsplashDatabase : RoomDatabase() {
    abstract fun searchKeywordDao(): SearchKeywordDao
}